package com.fast.config;

import cn.hippo4j.config.springboot.starter.config.BootstrapConfigProperties;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Slf4j
@Configuration(proxyBeanMethods = false)//lite
//@Configuration//lite
public class SpringAutoConfiguration {

    @Bean
    @ConditionalOnProperty(prefix = BootstrapConfigProperties.PREFIX, name = "configmap")
    public ConfigmapRefreshHandler configmapRefreshHandler() {
        return new ConfigmapRefreshHandler();
    }

}
